package demo02;

public class Student<Q> {
    private Q name;
    private  Q age;

    public Q getName() {
        return name;
    }

    public void setName(Q name) {
        this.name = name;
    }

    public Q getAge() {
        return age;
    }

    public void setAge(Q age) {
        this.age = age;
    }

    public <Q>void eat(Q q){
        System.out.println(q);
    }
}
